package service.impl;

import dao.BaseDao;
import dao.WalletDao;
import dao.impl.WalletDaoImpl;
import entity.Wallet;
import service.WalletService;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;

public class WalletServiceImpl implements WalletService {
    WalletDao walletDao = new WalletDaoImpl();
    @Override
    public ResultSet selectWallet(int uid) {
        return walletDao.selectWallet(uid);
    }

    @Override
    public ResultSet selectWalletByWid(int wid) {
        return walletDao.selectWalletByWid(wid);
    }

    @Override
    public int updateWallet(Wallet wallet) {
        return walletDao.updateWallet(wallet);
    }
}
